package com.hspedu.interface_;

public class EVI {
    public static void main(String[] args) {
        LittleMonkey lmonkey = new LittleMonkey("wukong");
        lmonkey.climbing();
        lmonkey.swimming();
    }
}

class Monkey{
    private String name;

    public Monkey(String name) {
        this.name = name;
    }

    public void climbing(){
        System.out.println("monkey is climbing");
    }
}

class LittleMonkey extends Monkey implements Fishable{
    public LittleMonkey(String name) {
        super(name);
    }

    @Override
    public void swimming() {
        System.out.println("swimming like fish");
    }
}

interface Fishable{
    void swimming();
}